import React from "react";
import ReactDOM from "react-dom/client";
import router from "./routes";
import { Provider,useSelector } from "react-redux";
import store from "./store";
import Toast from "./components/Toast";

const root = ReactDOM.createRoot(
  document.getElementById("root") as HTMLElement
);
// root.render(router);
root.render(<Provider store={store}>
  <Toast />
  {router}
  </Provider>);
